﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//------------------------------------------------------------
// shaco Framework
// Copyright © 2017-2021 chang.liu All rights reserved.
// Feedback: 449612236@qq.com
//------------------------------------------------------------

namespace shaco
{
    public class UIManagerConfig : IUIManagerConfig
    {
        public string prefixPath => _prefixPath;
        private string _prefixPath = "Assets/Resources/";

        public string GetFullPath(string key)
        {
            var retValue = KeyToPath(_prefixPath + key);
            return retValue;
        }

        public string FullPathToKey(string path)
        {
            var classTypeName = path.Remove(_prefixPath);
            return classTypeName;
        }

        public string KeyToPath(string key)
        {
            return key.Replace('.', '/');
        }
    }
}

